var loadedSystem;
loadedSystem = false;
while(!loadedSystem)
{
    sysTag = readLine();
    switch(sysTag.name)
    {
        case "entities":
            loadEntities();
        break;
        
        case "components":
            loadComponents();
        break;
        
        case "/system":
            loadedSystem = true;
        break;
    }
    if (!loadedSystem)
    {
        nextLine();
    }
}
